projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa389f5
)
Avoid uninitialized read
author
Philipp Stephani
<phst@google.com>
Sat, 20 May 2017 14:57:58 +0000
(16:57 +0200)
committer
Philipp Stephani
<phst@google.com>
Sun, 21 May 2017 19:50:36 +0000
(21:50 +0200)
* src/nsterm.m (ns_read_socket): Don't read uninitialized variable 'nevents'.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index c8320130a875f3d0050a1438dc7bff58c556b870..e69aa43dd377ba1a3d655de5f6b9824283b30558 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-4261,6
+4261,8
@@
ns_read_socket (struct terminal *terminal, struct input_event *hold_quit)
q_event_ptr = NULL;
unblock_input ();
}
+ else
+ return -1;
return nevents;
}